package com.ayf.payment.game.api.service.impl;

import com.ayf.payment.game.api.entity.MerchantBatchPayFileFailReason;
import com.ayf.payment.game.api.mapper.MerchantBatchPayFileFailReasonMapper;
import com.ayf.payment.game.api.service.MerchantBatchPayFileFailReasonService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MerchantBatchPayFileFailReasonServiceImpl implements MerchantBatchPayFileFailReasonService{

    @Resource
    private MerchantBatchPayFileFailReasonMapper merchantBatchPayFileFailReasonMapper;

    @Override
    public List<MerchantBatchPayFileFailReason> list(String batchPayFileId) {
        MerchantBatchPayFileFailReason failReason = new MerchantBatchPayFileFailReason();
        failReason.setBatchPayFileId(batchPayFileId);
        return merchantBatchPayFileFailReasonMapper.select(failReason);
    }
}
